const { resolve } = require("path");


function fun1() {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve('志超')
        }, 1000);
    })
}


function fun2() {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve('长生')
        }, 1000);
    })
}

function fun3() {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve('林萃')
        }, 1000);
    })
}

function fun4() {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve('梦娇')
        }, 1000);
    })
}

fun1().then((resolve) => {
    console.log(resolve);
    return fun2()
}).then((resolve) => {
    console.log(resolve);
    return fun3()
}).then(resolve => {
    console.log(resolve);
    return fun4()
}).then(resolve => {
    console.log(resolve);
})




